package com.novel.mapper;

import com.novel.pojo.system.ChapterOrder;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.Date;
import java.util.List;

public interface ChapterOrderMapper extends Mapper<ChapterOrder>, MySqlMapper<ChapterOrder> {


    /**
     * 计算章节购买的收入
     */
    List<ChapterOrder> calculateChapterAndCost(@Param("beginDate") Date beginDate,@Param("endDate") Date endDate);

}